<% if authorized? -%>
  <% content_tag :span, 
    :id => "textblock_#{textblock.id}",
    :class => "editable",
    :title => "Клик для редактирования",
    :onclick => "Modalbox.show('#{textblock_path(textblock.id)}', {title: false, width: 600, height: 560, onHide: removeEditor, overlayClose: false});" do -%>
    <%= textblock.content -%>
  <% end-%>

<% else -%>
  <%= textblock.content -%>
<% end -%>
